package com.unisedu.hr.entity;

import com.unisedu.hr.basic.IBaseEntity;
import lombok.Data;

import java.util.Map;

@Data
public class ResponseModel implements IBaseEntity{

    public ResponseModel() {
        this.code = 200;
        this.message = "请求成功";
    }

    private Integer code;

    private String message;

    private Object data;

    private Map<String, Object> map;

    public void errorMessage(String message){
        this.code = 500;
        this.message = message;
    }

    public void reqeustFaild(int code, String message){
        this.code = code;
        this.message = message;
    }


}
